<?php

require_once './includes/fonctions.php';
require_once './interfaces/jeu.interface.php';
	
	class jeu implements jeuInterface{
		
		private $id;
		private $nom;
		private $prix;
		private $gain_fun;
		private $energie_requise;
		
		function jeu($id){
			$req = 'SELECT *
					FROM jeu
					WHERE jeu_id = '.$id;
			$req = getArrayFromQuery($req, 1);
			
			$this->id 				= $req['jeu_id'];
			$this->nom 				= $req['jeu_nom'];
			$this->prix 			= $req['jeu_prix'];
			$this->gain_fun		 	= $req['gain_fun'];
			$this->energie_requise 	= $req['energie_requise'];
		}
		
		function get_id(){
	 		return $this->id;
	 	}
		
		function get_nom(){
	 		return $this->nom;
	 	}
		
		function get_prix(){
	 		return $this->prix;
	 	}
		
		function get_fun(){
	 		return $this->gain_fun;
	 	}
		
		function get_cout_energie(){
	 		return $this->energie_requise;
	 	}
	 	
	}

?>